from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import BannerView
router = SimpleRouter()
router.register('banner', BannerView, 'banner')

from .views import welcome
urlpatterns = [
    # http://127.0.0.1:8000/smart/welcome/-->>就能获得图片数据
    path('welcome/', welcome),
]
urlpatterns += router.urls